/**
 * @author Krushna
 */
package com.cipe.cmrs.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="changenotificationsmessage")
public class ChangeNotificationsMessage extends BaseEntity {
	@Column
	String message;
	@Column
	Date date;
	@Column
	String url;
    @ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="changenotificationsid")
	Changenotification changenotification;
    /**
	 * Attribute userinfo
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "programassistant")
	private User programAssistant;
	/**
	 * Attribute userinfo
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "regionaldirector")
	private User regionaldirector;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "programofficer")
	private User programOfficer;

	public User getProgramAssistant() {
		return programAssistant;
	}
	public void setProgramAssistant(User programAssistant) {
		this.programAssistant = programAssistant;
	}
	public User getRegionaldirector() {
		return regionaldirector;
	}
	public void setRegionaldirector(User regionaldirector) {
		this.regionaldirector = regionaldirector;
	}
	public User getProgramOfficer() {
		return programOfficer;
	}
	public void setProgramOfficer(User programOfficer) {
		this.programOfficer = programOfficer;
	}
	public Region getRegion() {
		return region;
	}
	public void setRegion(Region region) {
		this.region = region;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "regionid")
	private Region region;

	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Changenotification getChangenotification() {
		return changenotification;
	}
	public void setChangenotification(Changenotification changenotification) {
		this.changenotification = changenotification;
	}
    

}
